import elems.Skin;
import errors.MyCompilError;
import errors.MyError;
import errors.MyWarning;
import strings.File;
import strings.Str;

import java.util.LinkedList;
import java.util.List;

public class Main {

    public static void main(String[] args) {
        try{
            Skin.add("red");
            Skin.add("green");
            Skin.add("blue");

            LinkedList<Str> strs = File.getStrings("./");
            for(Str str : strs)
                str.print();

            if(false)
                throw new MyCompilError("Message, something wrong!");
            if(false)
                throw new MyError(1,"original","Message, something wrong!");
        }catch (MyCompilError err){
            err.printStackTrace();
        }catch (MyError err){
            err.printStackTrace();
        }finally {
            MyWarning.print();
        }
    }

}
